﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace licensePlateTool
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            InitializeAsync();
        }

        private async void InitializeAsync()
        {
            await webView21.EnsureCoreWebView2Async(null);
            webView21.Source = new Uri("file:///C:/Users/34799/Desktop/code/license-plate/index.html");
        }

        public void setUrl(string url) 
        {
            webView21.CoreWebView2.Navigate(url);
        }

        private void Form2_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = true;
            this.Hide();
        }
    }
}
